
from page.page_form import PageForm

class ServiceForm(object):
    def __init__(self,driver):
        self.driver=driver
        self.ui=PageForm(self.driver)


    def service_form_001(self,d):
        #对测试数据进行一些出来
        sex=""
        a=d["sex"]
        if a=="男":
            sex="M"
        elif a=="女":
            sex="F"
        else:
            sex="ry"

        self.ui.openUrl()
        self.ui.input_zanhao(d["name"])
        self.ui.input_pwd(d["pwd"])
        self.ui.selectSex(sex)
        self.ui.selectGuoji(d["guoji"])
        self.ui.selectAihao(d["aihao"])
        self.ui.selectDegree(d["degree"])
        self.ui.inputJiesao(d["jiesao"])
        self.ui.uploadZaipian(d["files"])
        self.ui.inputBirthday(d["birthday"])

